package jvmtest;
/**
 * Created with IntelliJ IDEA.
 *
 * @Author: Tom
 * @Date: 2022/01/20/10:48
 * @Description:
 */

/**
 *@ClassName ClassLoaderDemo
 *@Description
 *@Author 王琛
 *@Date 2022/1/20 10:48
 @Version 1.0
 */
public class ClassLoaderDemo {
    static class Parent{
        public static int A = 1;
        static {
            A = 2;
        }
    }
    static class Sub extends Parent {
      public static int B = A;
    }

    public static void main(String[] args) {
        System.out.println(Sub.B);
    }

}
